package com.main.beatit;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.view.Window;
import android.view.WindowManager;

public class Intro extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		getWindow().addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);
		super.onCreate(savedInstanceState);
		setContentView(R.layout.intro);
		
		// I don't use auto sleep mode.
		getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
		
		initialize();
	}
	
	private void initialize() {
		
		Handler handler = new Handler() {
			public void handleMessage(Message msg) {
				finish();
				
				//startActivity(new Intent(Intro.this, MainActivity.class));
			}
		};
		
		handler.sendEmptyMessageDelayed(0, 3000);
	}
}
